home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-06-12 | 1.3 KB | 54 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH"="Appearance\Start menu\Options"
- "NAME"="Display Options"
- "VERSION"="1.01"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Show "Start" button,Taskbar and Tray context menu"
- "TEXT 2"="Show context menu (right-click) in Start->Programs"
- "DESCRIPTION 1"="If an item is disabled (not checked), Windows will either not display it or does not allow that changes are made."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
-
-
- sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
- sV1="NoTrayContextMenu"
- sV2="NoChangeStartMenu"
- SUB Plugin_Initialize
- i=RegReadValue(sp&sV1)
- If IsEmpty(i) or i=0 then SetUIElement 1,true
-
- i=RegReadValue(sp&sV2)
- if IsEmpty(i) or i=0 then SetUIElement 2,true
-
- END SUB
-
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sp&sV1,0,2)
- else
- Call RegWriteValue(sp&sV1,1,2)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call RegWriteValue(sp&sV2,0,2)
- else
- Call RegWriteValue(sp&sV2,1,2)
- end if
-
-
-
-
- Call Restart
- END SUB
-
- SUB Plugin_Terminate
- END SUB
-